package com.trex.modules.tbl.checkman.entity;

import javax.validation.constraints.Size;

import org.springframework.validation.annotation.Validated;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 检车人信息Entity
 * @author jy
 * @version 2022-09-06
 */
@Table(name="tbl_zd_jcr", alias="a", label="检车人信息信息", columns={
		@Column(name="rec_id", attrName="recId", label="记录ID", isPK=true),
		@Column(name="area_code", attrName="areaCode", label="列检车间编号"),
		@Column(name="area", attrName="area", label="列检车间"),
		@Column(name="place_code", attrName="placeCode", label="场所编号"),
		@Column(name="place", attrName="place", label="场所"),
		@Column(name="jcr_code", attrName="jcrCode", label="检车人编号"),
		@Column(name="jcr_name", attrName="jcrName", label="检车人", queryType=QueryType.LIKE),
		@Column(name="team", attrName="team", label="组别"),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志位", isQuery=false),
		@Column(name="user_code", attrName="userCode", label="更新人", isQuery=false),
		@Column(name="user_name", attrName="userName", label="更新人", queryType=QueryType.LIKE),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="IP地址", isQuery=false),
	}, orderBy="a.rec_id DESC"
)
public class TblZdJcr extends DataEntity<TblZdJcr> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// 记录ID
	private String areaCode;		// 列检车间编号
	private String area;		// 列检车间
	private String placeCode;		// 场所编号
	private String place;		// 场所
	private String jcrCode;		// 检车人编号
	private String jcrName;		// 检车人
	private String team;		// 组别
	private String deleFlag;		// 删除标志位
	private String userCode;		// 更新人
	private String userName;		// 更新人
	private Date updTime;		// 更新时间
	private String ip;		// IP地址

	public TblZdJcr() {
		this(null);
	}
	
	public TblZdJcr(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
	@Size(min=0, max=6, message="列检车间编号长度不能超过 6 个字符")
	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	@Size(min=0, max=20, message="列检车间长度不能超过 20 个字符")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Size(min=0, max=6, message="场所编号长度不能超过 6 个字符")
	public String getPlaceCode() {
		return placeCode;
	}

	public void setPlaceCode(String placeCode) {
		this.placeCode = placeCode;
	}
	
	@Size(min=0, max=20, message="场所长度不能超过 20 个字符")
	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}
	
//	@Size(min=0, max=10, message="检车人编号长度不能超过 10 个字符")
	public String getJcrCode() {
		return jcrCode;
	}

	public void setJcrCode(String jcrCode) {
		this.jcrCode = jcrCode;
	}
	
	@Size(min=0, max=20, message="检车人长度不能超过 20 个字符")
	public String getJcrName() {
		return jcrName;
	}

	public void setJcrName(String jcrName) {
		this.jcrName = jcrName;
	}
	
	@Size(min=0, max=2, message="组别长度不能超过 2 个字符")
	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}
	
	@Size(min=0, max=1, message="删除标志位长度不能超过 1 个字符")
	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	
	@Size(min=0, max=10, message="更新人长度不能超过 10 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Size(min=0, max=20, message="更新人长度不能超过 20 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
	@Size(min=0, max=15, message="IP地址长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
}